home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(load){
- function rem(flag, obj)
- {
- if(flag == 1)
- {
- i = 0;
- while(i < _root.stage_objects.length)
- {
- if(_root.stage_objects[i] == this._name)
- {
- _root.todel_objects.push[i];
- }
- i++;
- }
- _root.stoned = true;
- _root.bullet.vector.x = 0;
- _root.bullet.vector.y = 0;
- _root.gravity = 0;
- _root.bullet.gotoAndPlay(2);
- }
- else if(flag == 2)
- {
- i = 0;
- while(i < _root.stage_objects.length)
- {
- if(_root.stage_objects[i] == this._name)
- {
- _root.todel_objects.push[i];
- }
- i++;
- }
- _root[obj].speed = 0;
- _root[obj].active = false;
- _root[obj].gotoAndPlay(2);
- }
- }
- pretest = false;
- move_x = _X;
- move_y = _Y;
- move_direction = 1;
- c_path = move_path;
- tp = "heart-stone";
- active = true;
- _root.stage_objects.push(this._name);
- }
-